package com.twu.biblioteca.provider;

import com.twu.biblioteca.entity.Book;
import com.twu.biblioteca.entity.Movie;
import com.twu.biblioteca.entity.Rating;
import com.twu.biblioteca.entity.User;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: deva
 * Date: 10/1/13
 * Time: 12:18 PM
 * To change this template use File | Settings | File Templates.
 */
public class DataProvider {

    public static void loadAvailableBooks(ArrayList<Book> books)
    {
        books.add(new Book("9780099469698", "Don Quixote","Miguel De Cervantes"));
        books.add(new Book("9780141439822", "Robinson Crusoe","Daniel Defoe"));
        books.add(new Book("9781847490889", "Gulliver's Travels","Jonathan Swift"));
        books.add(new Book("9780141439587", "Emma","Jane Austen"));
        books.add(new Book("9780199539055", "Sybil","Benjamin Disraeli"));
    }

    public static void loadAvailableMovies(ArrayList<Movie> movies)
    {
        movies.add(new Movie("The Shawshank Redemption",(short)1994,"Frank Darabont",new Rating(9.5f)));
        movies.add(new Movie("The Godfather",(short)1972,"Francis Ford Coppola",new Rating(9.0f)));
        movies.add(new Movie("Pulp Fiction",(short)1994,"Quentin Tarantino",new Rating(8.9f)));
        movies.add(new Movie("Django Unchained",(short)2012,"Quentin Tarantino",new Rating(8.4f)));
        movies.add(new Movie("Slumdog Millionaire",(short)2008,"Danny Boyle",new Rating(8f)));

        movies.add(new Movie("The Celebration",(short)1998,"Thomas Vinterberg",new Rating(7.5f)));
        movies.add(new Movie("Pledge This!",(short)2006,"William Heins",new Rating(5.5f)));
        movies.add(new Movie("Disaster Movie",(short)2008,"Aaron Seltzer",new Rating(Rating.RATING_NA)));
        movies.add(new Movie("Crossover",(short)2006,"Preston A. Whitmore",new Rating(Rating.RATING_NA)));
        movies.add(new Movie("Yes Sir",(short)2007,"Taner Akvardar",new Rating(3.2f)));

        movies.add(new Movie("Tangents",(short)1994,"David Giancola",new Rating(2.6f)));
        movies.add(new Movie("Epic Movie",(short)2007,"Aaron Seltzer",new Rating(2.3f)));
        movies.add(new Movie("The Pod People",(short)1983,"Juan Piquer Simón",new Rating(1.8f)));
        movies.add(new Movie("Surf School",(short)2006,"Joel Silverman",new Rating(Rating.RATING_NA)));
        movies.add(new Movie("Popstar",(short)2005,"Richard Gabai",new Rating(1)));
    }

    public static void loadAvailableUsers(ArrayList<User> users)
    {
        users.add(new User("111-1111", "pass1" , "Manoj", "manoj@gmail.com", "9931245388" ));
        users.add(new User("111-1112", "pass2" ,"Ravi", "ravi@gmail.com", "9931245389" ));
        users.add(new User("111-1113", "pass3" ,"April", "april@gmail.com", "9931245340" ));
    }
}
